package com.timss.opmm.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 
* @ClassName: ScheduleDetail 
* @Description: 排班详情表
* @author: fengzt 
* @date: 2014年5月28日
*
 */
public class ScheduleDetail implements Serializable {

    private static final long serialVersionUID = 9142033055470086555L;
    
    /**
     * key
     */
    private int id;
    
    /**
     * 时间 (具体到天yyyy-MM-dd)
     */
    private Date dateTime;
    
    /**
     * 值别表
     */
    private Duty duty;
    
    /**
     * 班次表
     */
    private Classes classes;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public Duty getDuty() {
        return duty;
    }

    public void setDuty(Duty duty) {
        this.duty = duty;
    }

    public Classes getClasses() {
        return classes;
    }

    public void setClasses(Classes classes) {
        this.classes = classes;
    }

    @Override
    public String toString() {
        return "ScheduleDetail [id=" + id + ", dateTime=" + dateTime
                + ", duty=" + duty + ", classes=" + classes + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((classes == null) ? 0 : classes.hashCode());
        result = prime * result
                + ((dateTime == null) ? 0 : dateTime.hashCode());
        result = prime * result + ((duty == null) ? 0 : duty.hashCode());
        result = prime * result + id;
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        ScheduleDetail other = (ScheduleDetail) obj;
        if (classes == null) {
            if (other.classes != null)
                return false;
        } else if (!classes.equals(other.classes))
            return false;
        if (dateTime == null) {
            if (other.dateTime != null)
                return false;
        } else if (!dateTime.equals(other.dateTime))
            return false;
        if (duty == null) {
            if (other.duty != null)
                return false;
        } else if (!duty.equals(other.duty))
            return false;
        if (id != other.id)
            return false;
        return true;
    }
    
    
    
}
